<?php
defined('IN_PHPCMS') or exit('Access Denied');
include admin_tpl('header');
?>
<body>
<form method="post" action="?mod=<?=$mod?>&file=<?=$file?>&action=listorder">
<table cellpadding="0" cellspacing="1" class="table_list">
    <caption>分类管理</caption>
<tr>
<th>排序</th>
<th>ID</th>
<th>分类名称</th>
<th>分类描述</th>
<th>管理操作</th>
</tr>
<?php
if(is_array($infos)){
	foreach($infos as $info){
?>
<tr>
<td class="align_c"><input type="text" name="info[<?=$info['typeid']?>]" value="<?=$info['listorder']?>" size="5"></td>
<td class="align_c"><?=$info['typeid']?></td>
<td class="align_c"><?=output::style($info['name'],$info['style'])?></td>
<td align="left"><?=$info['description']?></td>
<td class="align_c"><a href="?mod=<?=$mod?>&file=<?=$file?>&action=edit&typeid=<?=$info['typeid']?>&module=<?=$module?>">修改</a> | <a href="javascript:confirmurl('?mod=<?=$mod?>&file=<?=$file?>&action=delete&typeid=<?=$info['typeid']?>&module=<?=$module?>','确认要删除‘<?=$info['name']?>’吗')">删除</a> </td>
</tr>
<?php
	}
}
?>
</table>
<div class="button_box"><input type="submit" name="dosubmit" value=" 排序 "></div>
<div id="pages"><?=$type->pages?></div>
</form>
</body>
</html>